import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { TranslateModule } from '@ngx-translate/core';
import { WebviewDirective } from '@shared/directives/webview/webview.directive';
import { AuthDirective } from '@shared/directives/auth/auth.directive';
import { SHARED_ZORRO_MODULES } from './shared-zorro.module';

const IMPORTS_MODULES = [CommonModule, TranslateModule, FormsModule, ReactiveFormsModule, ...SHARED_ZORRO_MODULES];
const EXPORTS_MODULES = [WebviewDirective, AuthDirective, CommonModule, TranslateModule, FormsModule, ReactiveFormsModule, ...SHARED_ZORRO_MODULES];
const DECLARATIONS_MODULES = [WebviewDirective, AuthDirective];

@NgModule({
  declarations: [...DECLARATIONS_MODULES],
  imports: [...IMPORTS_MODULES],
  exports: [...EXPORTS_MODULES]
})
export class SharedModule { }
